const router = require('koa-router')({prefix: '/dictionary'});
const controller = require('controller/dictionary.js');

/**
 * @api {get} /dictionary/singleList 特定类型的字段列表
 * @apiVersion 1.0.0
 * @apiName singleList
 * @apiGroup 字典模块
 * @apiHeader {String} Authorization 用户授权token
 * @apiSampleRequest /dictionary/singleList
 * @apiSuccessExample {json} 请求成功：
 * {}
 */
router.get('/singleList', controller.singleList);

/**
 * @api {get} /dictionary/getPayType 获取支付方式，由字典和套餐组成
 * @apiVersion 1.0.0
 * @apiName getPayType
 * @apiGroup 字典模块
 * @apiHeader {String} Authorization 用户授权token
 * @apiSampleRequest /dictionary/getPayType
 * @apiSuccessExample {json} 请求成功：
 * {}
 */
router.get('/getPayType', controller.getPayType);

module.exports = router;
